package solitaire.gui;

import java.awt.Graphics;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;

import solitaire.extras.DrawObject;
/*
public class MyRectangle extends DrawObject
{
    public MyRectangle( double dX, double dY )
    {
        m_dStartX = dX;
        m_dStartY = dY;
    }

    public void drawObject(Graphics g)
    {
        g.drawRect( 
        		(int)(m_dStartX - m_dSidelength /2),
        		(int)(m_dStartY - m_dSidelength /2), 
        		(int)m_dSidelength, (int)m_dSidelength );
    }

    public boolean contains(Point2D point)
    {
        return new Rectangle2D.Double( 
        		m_dStartX - m_dSidelength /2, 
        		m_dStartY - m_dSidelength /2,
        		m_dSidelength, m_dSidelength ).contains( point );
    }

    public void setLocation( double dX, double dY )
    {
        m_dStartX = dX;
        m_dStartY = dY;
    }
}
*/
